package com.hdcircles.autoform.ui.main.fragment;

import android.support.v7.widget.CardView;
import android.view.View;

import com.hdcircles.autoform.R;
import com.hdcircles.autoform.base.SimpleFragment;
import com.hdcircles.autoform.ui.main.activity.MainActivity;

import butterknife.BindView;
import cn.hugeterry.updatefun.UpdateFunGO;

/**
 * Created by hdcircles on 2016/9/27.
 */

public class AboutFragment extends SimpleFragment {

    @BindView(R.id.check_version)
    CardView checkVersion;

    @Override
    protected int getLayoutId() {
        return R.layout.fragment_about;
    }

    @Override
    protected void initEventAndData() {
        checkVersion.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                UpdateFunGO.manualStart(getContext());
            }
        });
    }

    @Override
    public void onResume() {
        super.onResume();
        UpdateFunGO.onResume(getContext());
    }

    @Override
    public void onStop() {
        super.onStop();
        UpdateFunGO.onStop(getContext());
    }
}
